package com.weavernorth.modelInterFace.service;

import com.weavernorth.modelInterFace.pojo.filedEntity;
import com.weavernorth.modelInterFace.pojo.messageVo;
import weaver.conn.ConnStatement;
import weaver.conn.RecordSet;

import java.util.List;
import java.util.Map;

/**
 * @Author: bruseewang
 * @Package: com.weavernorth.modelInterFace.service
 * @date: 2020/7/1 16:37
 * @description:
 */
public interface modeDao {
    RecordSet getAllModeData(String strOaTable, String strTbkey);
    String insertData(String strOaTable, List<filedEntity> data, String strTbkey,ConnStatement rs_main_tb,String strCheckBrowser,Map<String,String> mp);
    String updateData(String strOaTable, List<filedEntity> data, String strTbkey, ConnStatement rs_main_tb, String strCheckBrowser, Map<String,String> mp);
    String insert_detail(String strOaTable, List<filedEntity> data, String strTbkey,String strMainKey,ConnStatement rs_main_tb,String strCheckBrowser,Map<String,String> mp);
    String update_detail(String strOaTable, List<filedEntity> data, String strTbkey,String strMainKey, ConnStatement rs_main_tb,String strCheckBrowser,Map<String,String> mp);
    String delete_Data(String strOaTable,String strTbkey,String strMainKey);


    String insert_main_new(String strOaTable,String strTbkey,Map<String,String> mp,Map<String,String> mp_Sql);
    String update_main_new(String strOaTable,String strTbkey,Map<String,String> mp,Map<String,String> mp_Sql);
    String insert_detail_new(String strOaTable,String strTbkey,String strMainKey,Map<String,String> mp,Map<String,String> mp_Sql);
    String update_detail_new(String strOaTable,String strTbkey,String strMainKey,Map<String,String> mp,Map<String,String> mp_Sql);
    messageVo check_Data(List<filedEntity> data,String strColumnNames,ConnStatement statement,String strCheckBrowser,Map<String,String> mp,String strOaTable,Map<String,String> mp_Sql,String op_type);
}
